package com.example.myannotation;

import com.example.myannotation.model.MyUser;
import lombok.extern.slf4j.Slf4j;

/**
 * @author tianzhuang
 * @version 1.0
 * @date 2022/1/7 22:44
 */
@Slf4j
public class TestMain {
    public static void one(Object user) {
        MyUser myUser = (MyUser) user;
        myUser.setGender("1");
    }
    public static void main(String[] args) {
        MyUser myUser = new MyUser();
        myUser.setName("张三");
        myUser.setGender("男");
        log.info("信息：{}", myUser);
        TestMain.one(myUser);
        log.info("信息2：{}", myUser);
    }
}
